<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - 花礼相伴</title>
    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- FontAwesome 图标库 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            background-color: #f8f8f8;
        }
    </style>
</head>
<body class="bg-gray-100">
    <!-- 主体内容 -->
    <div class="min-h-screen flex flex-col">
        <!-- 导航栏 -->
        <header class="bg-white p-4 border-b border-gray-200 shadow-sm">
            <div class="container mx-auto flex items-center justify-between">
                <a href="home.html" class="text-2xl font-bold text-rose-500 flex items-center">
                    <i class="fas fa-flower text-rose-500 mr-2"></i>
                    花礼相伴
                </a>
                <nav class="hidden md:flex space-x-6">
                    <a href="home.html" class="text-gray-600 hover:text-rose-500">首页</a>
                    <a href="categories.html" class="text-gray-600 hover:text-rose-500">分类</a>
                    <a href="cart.html" class="text-gray-600 hover:text-rose-500">购物车</a>
                </nav>
                <div class="flex items-center space-x-4">
                    <a href="register.html" class="text-gray-600 hover:text-rose-500 hidden md:block">注册</a>
                    <a href="login.html" class="text-white bg-rose-500 px-4 py-2 rounded-lg hover:bg-rose-600 transition duration-300">登录</a>
                </div>
            </div>
        </header>

        <!-- 登录表单 -->
        <main class="flex-1 flex flex-col items-center justify-center p-6 bg-gray-50">
            <div class="w-full max-w-md md:max-w-lg lg:max-w-xl">
                <!-- Logo -->
                <div class="text-center mb-10 hidden md:block">
                    <div class="inline-flex items-center justify-center h-24 w-24 rounded-full bg-rose-100 text-rose-500 mb-4">
                        <i class="fas fa-flower text-4xl"></i>
                    </div>
                    <h1 class="text-3xl font-bold text-gray-800">欢迎登录</h1>
                    <p class="text-gray-500 mt-1 text-lg">美好的一天，从鲜花开始</p>
                </div>
                
                <!-- 移动端 Logo -->
                <div class="text-center mb-8 md:hidden">
                    <div class="inline-flex items-center justify-center h-20 w-20 rounded-full bg-rose-100 text-rose-500 mb-4">
                        <i class="fas fa-flower text-3xl"></i>
                    </div>
                    <h1 class="text-2xl font-bold text-gray-800">花礼相伴</h1>
                    <p class="text-gray-500 mt-1">美好的一天，从鲜花开始</p>
                </div>

                <!-- 登录表单 -->
                <div class="bg-white rounded-lg shadow-md p-6 md:p-8 mb-6">
                    <h2 class="text-xl md:text-2xl font-semibold mb-6 text-center">账号登录</h2>
                    <form>
                        <div class="mb-4">
                            <label for="username" class="block text-sm font-medium text-gray-700 mb-1">用户名</label>
                            <div class="relative">
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                    <i class="far fa-user text-gray-400"></i>
                                </div>
                                <input type="text" id="username" name="username" 
                                    class="block w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-rose-500 focus:border-rose-500" 
                                    placeholder="请输入用户名" required>
                            </div>
                        </div>
                        <div class="mb-6">
                            <label for="password" class="block text-sm font-medium text-gray-700 mb-1">密码</label>
                            <div class="relative">
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                    <i class="fas fa-lock text-gray-400"></i>
                                </div>
                                <input type="password" id="password" name="password" 
                                    class="block w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-rose-500 focus:border-rose-500" 
                                    placeholder="请输入密码" required>
                            </div>
                        </div>
                        <button type="submit" 
                            class="w-full bg-rose-500 hover:bg-rose-600 text-white py-3 rounded-lg font-medium transition duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-rose-500">
                            登录
                        </button>
                    </form>

                    <div class="mt-4 flex justify-between text-sm">
                        <a href="#" class="text-gray-600 hover:text-gray-800">忘记密码?</a>
                    </div>
                </div>

                <div class="text-center">
                    <p class="text-gray-600">还没有账号? <a href="register.html" class="text-rose-500 font-medium">立即注册</a></p>
                </div>
            </div>
        </main>

        <!-- 页脚 -->
        <footer class="bg-white border-t border-gray-200 py-6 mt-auto">
            <div class="container mx-auto px-4">
                <div class="flex flex-col md:flex-row justify-between items-center">
                    <div class="mb-4 md:mb-0">
                        <p class="text-gray-600">&copy; 2023 花礼相伴鲜花配送网站. 所有权利保留.</p>
                    </div>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-500 hover:text-rose-500">
                            <i class="fab fa-weixin text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-500 hover:text-rose-500">
                            <i class="fab fa-weibo text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-500 hover:text-rose-500">
                            <i class="fas fa-envelope text-xl"></i>
                        </a>
                    </div>
                </div>
            </div>
        </footer>
    </div>
</body>
</html> 